#include "StdAfx.h"
#include "CurveDataSource.h"
using namespace NS_GXX::NS_GXX_GRAPH;
CCurveDataSource::CCurveDataSource(void)
{
	m_dMaxVarX = 100.0;
	m_dMinVarX = 0.0;
	m_dMaxVarY = 100.0;
	m_dMinVarY = 0.0;
	m_bXAbs = false;
}

CCurveDataSource::~CCurveDataSource(void)
{
}
void CCurveDataSource::GetRealPoints(vector<RealPoint>& realPoints,vector<RealPoint>& breakPoints)
{
	realPoints.clear();
	RealPoint pt[5]={{200,200},{250,250},{300,200},{350,250},{400,200}};
	for(int i = 0 ; i < 5; i ++)
	{
		realPoints.push_back( pt[i] );
	}
}

float NS_GXX::NS_GXX_GRAPH::CCurveDataSource::GetMaxVarX()
{
	return m_dMaxVarX;
}

float NS_GXX::NS_GXX_GRAPH::CCurveDataSource::GetMinVarX()
{
	//m_dMinVarX = 0.0;
	//vector<RealPoint> realPoints;
	//GetRealPoints(realPoints);
	return m_dMinVarX;
}

float NS_GXX::NS_GXX_GRAPH::CCurveDataSource::GetMinVarY()
{
	return m_dMinVarY;
}
float NS_GXX::NS_GXX_GRAPH::CCurveDataSource::GetMaxVarY()
{
	return m_dMaxVarY;
}

void NS_GXX::NS_GXX_GRAPH::CCurveDataSource::SetXAbs( bool bAbs )
{
	m_bXAbs = bAbs;
}
